package com.cloud.cloudvideo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cloud.cloudvideo.entity.VideoMedia;
import com.cloud.cloudvideo.entity.VideoMediaExample;
import com.cloud.cloudvideo.entity.VideoMediaPo;

public interface VideoMediaMapper {
    long countByExample(VideoMediaExample example);

    int deleteByExample(VideoMediaExample example);

    int deleteByPrimaryKey(Long id);

    int insert(VideoMedia record);

    int insertSelective(VideoMedia record);

    List<VideoMedia> selectByExample(VideoMediaExample example);

    VideoMedia selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") VideoMedia record, @Param("example") VideoMediaExample example);

    int updateByExample(@Param("record") VideoMedia record, @Param("example") VideoMediaExample example);

    int updateByPrimaryKeySelective(VideoMedia record);

    int updateByPrimaryKey(VideoMedia record);

    /**
     * 查找视频和分类信息
     * @param mediaorginalname 
     * @return
     */
	List<VideoMediaPo> findVideoAndCate(VideoMedia vm);

	/**
	 * 根据ID查找视频和分类信息
	 * @param id
	 * @return
	 */
	VideoMediaPo findVideoAndCateById(Long id);
}